/**
 * HtmlFactory class
 *
 * This class builds MovieElements and such, then prints them to the page. The methods
 * in this class are static, so they do not require the creation of an object.
 * 
 * HtmlFactory is not an abstract interface as in the design pattern for factories.
 *
 * @author Jim Carroll
 * @version 1.0
 *
 * Last modified: 2012.12.3
 */

function HtmlFactory() { // used for namespace placeholder
}

/** prints search results to page */
HtmlFactory.printResults = function(movieInfoList) {
	for (i in movieInfoList) {
		$("#results").append( MovieElement(movieInfoList[i]) );
	}
}

/** prints movie details retreived from tMDb */
HtmlFactory.printDetails = function( movieDetails ) {
	$("#details").html( MovieDetailElement( movieDetails ));
}